package com.hunhjy.shiro.services.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hunhjy.shiro.dao.UserRolesDaoMapper;
import com.hunhjy.shiro.dao.UsersDaoMapper;
import com.hunhjy.shiro.dto.common.UserRolesDto;
import com.hunhjy.shiro.dto.common.UsersDto;
import com.hunhjy.shiro.services.UserService;

@Service("userService")
public class UserServiceImpl implements UserService {
	@Resource
	private UsersDaoMapper usersDao;
	@Resource
	private UserRolesDaoMapper userRolesDao;
	@Override
	public List<UserRolesDto> getUserRoles(Map<String, Object> map) {
		return userRolesDao.selectList(map);
	}
	@Override
	public List<UsersDto> getUsers(Map<String, Object> map) {
		return usersDao.selectList(map);
	}

}
